<div class="modal-body">
    <div class="alert alert-info">单位基本信息</div>
    <form class="form-horizontal" method="post" novalidate>
        <div class="form-group">
            <label class="col-md-2 control-label" for="name">单位名称：</label>
            <div class="col-md-4">
                <input id="name" name="name" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.name" ng-maxlength="30" maxlength="30"/>
            </div>
            <label class="col-md-2 control-label" for="creditCode">统一社会信用代码：</label>
            <div class="col-md-4">
                <input id="creditCode" name="creditCode" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.creditCode" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="proviceId">单位地址：</label>
            <div class="col-md-2">
                <select id="proviceId" name="proviceId" class="form-control"
                        ng-model="client.proviceId"
                        ng-options="item.code as item.name for item in provices"></select>
            </div>
            <div class="col-md-2">
                <select id="cityId" name="cityId" class="form-control"
                        ng-model="client.cityId"
                        ng-options="item.code as item.name for item in citys"></select>
            </div>
            <div class="col-md-2">
                <select id="countryId" name="countryId" class="form-control"
                        ng-model="client.countryId"
                        ng-options="item.code as item.name for item in countrys"></select>
            </div>
            <div class="col-md-4">
                <input id="address" name="address" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.address" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="legalPerson">法人：</label>
            <div class="col-md-4">
                <input id="legalPerson" name="legalPerson" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.legalPerson" ng-maxlength="30" maxlength="30"/>
            </div>
            <label class="col-md-2 control-label" for="identityCard">法人身份证：</label>
            <div class="col-md-4">
                <input id="identityCard" name="identityCard" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.identityCard" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="capital">注册资本：</label>
            <div class="col-md-4">
                <input id="capital" name="capital" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.capital" ng-maxlength="30" maxlength="30"/>
            </div>
            <label class="col-md-2 control-label" for="doneDate">成立日期：</label>
            <div class="col-md-4">
                <input my-datepicker="" ng-model="client.doneDate"
                       id="doneDate" name="doneDate" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="registerDate">注册日期：</label>
            <div class="col-md-4">
                <input my-datepicker="" ng-model="client.registerDate"
                       id="registerDate" name="registerDate" />
            </div>
            <label class="col-md-2 control-label" for="industryId">行业类型：</label>
            <div class="col-md-4">
                <select id="industryId" name="industryId" class="form-control"
                       ng-model="client.industryId"
                        ng-options="item.code as item.name for item in industrys"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="businessStartDate">营业期限开始时间：</label>
            <div class="col-md-4">
                <input my-datepicker="" ng-model="client.businessStartDate"
                       id="businessStartDate" name="businessStartDate" />
            </div>
            <label class="col-md-2 control-label" for="businessEndDate">营业期限结束时间：</label>
            <div class="col-md-4">
                <input my-datepicker="" ng-model="client.businessEndDate"
                       id="businessEndDate" name="businessEndDate" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="awardDate">发照日期：</label>
            <div class="col-md-4">
                <input my-datepicker="" ng-model="client.awardDate"
                       id="awardDate" name="awardDate" />
            </div>
            <label class="col-md-2 control-label" for="clientTypeId">公司类型：</label>
            <div class="col-md-4">
                <select id="clientTypeId" name="clientTypeId" class="form-control"
                        ng-model="client.clientTypeId"
                        ng-options="item.code as item.name for item in industrys"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="registrationAuthority">登记机关：</label>
            <div class="col-md-4">
                <input id="registrationAuthority" name="registrationAuthority" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.registrationAuthority" ng-maxlength="30" maxlength="30"/>
            </div>
            <label class="col-md-2 control-label" for="registerCode">注册号：</label>
            <div class="col-md-4">
                <input id="registerCode" name="registerCode" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.registerCode" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="organizationCode">组织机构代码：</label>
            <div class="col-md-4">
                <input id="organizationCode" name="organizationCode" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.organizationCode" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="sscope">经营范围：</label>
            <div class="col-md-10">
                <textarea class="form-control" id="sscope" name="sscope"
                          ng-model="client.sscope" ng-maxlength="180" maxlength="180" rows="3">
                </textarea>
            </div>
        </div>
        <!--<div class="alert alert-info">上传营业执照</div>-->
        <!--<div class="form-group">-->
            <!--<div><img src="{{ImgName}}" style="width:100px;height: 100px"/></div>-->
            <!--<div class="pic_add">-->
                <!--<input id="pic_f" type="file" name="pic_f" onchange="angular.element(this).scope().uploadfile()"/>-->
                <!--<div class="p_upload">上传</div>-->
            <!--</div>-->
            <!---->
        <!--</div>-->
        <div class="alert alert-info">联系方式</div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="contactor">联系人：</label>
            <div class="col-md-4">
                <input id="contactor" name="contactor" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.contactor" ng-maxlength="30" maxlength="30"/>
            </div>
            <label class="col-md-2 control-label" for="phone">联系方式：</label>
            <div class="col-md-4">
                <input id="phone" name="phone" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.phone" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="email">邮箱：</label>
            <div class="col-md-4">
                <input id="email" name="email" type="text"
                       class="form-control" autocomplete="off"
                       ng-model="client.email" ng-maxlength="30" maxlength="30"/>
            </div>
        </div>

    </form>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" ng-click="submit()">保存</button>
    <button class="btn btn-default" ng-click="cancel()">取消</button>
</div>
